import request from '@/utils/request'

// 查询转班记录列表
export function listChangeClass(query) {
  return request({
    url: '/student/changeClass/list',
    method: 'get',
    params: query
  })
}

// 查询转班记录详细
export function getChangeClass(id) {
  return request({
    url: '/student/changeClass/' + id,
    method: 'get'
  })
}

// 新增转班记录
export function addChangeClass(data) {
  return request({
    url: '/student/changeClass',
    method: 'post',
    data: data
  })
}

// 修改转班记录
export function updateChangeClass(data) {
  return request({
    url: '/student/changeClass',
    method: 'put',
    data: data
  })
}

// 删除转班记录
export function delChangeClass(id) {
  return request({
    url: '/student/changeClass/' + id,
    method: 'delete'
  })
}
